<template>
  <div class="table-container">
    <a-table :columns="columns" :data-source="data">
      <a slot="name" slot-scope="text">{{ text }}</a>
    </a-table>
  </div>
</template>
<script>
const columns = [
  {
    title: '订单号',
    dataIndex: 'name',
    key: 'name',
    scopedSlots: { customRender: 'name' },
  },
  {
    title: '姓',
    dataIndex: 'age',
    key: 'age',
    width: 80,
  },
  {
    title: '名',
    dataIndex: 'address',
    key: 'address 1',
    ellipsis: true,
  },
  {
    title: '营销代码',
    dataIndex: 'address',
    key: 'address 2',
    ellipsis: true,
  },
  {
    title: '申请时间',
    dataIndex: 'address',
    key: 'address 3',
    ellipsis: true,
  },
  {
    title: '借款金额',
    dataIndex: 'address',
    key: 'address 4',
    ellipsis: true,
  },
]

const data = [
  {
    key: '1',
    name: 'John',
    age: 32,
    address: 'Brown',
    tags: ['nice', 'developer'],
  },
]

export default {
  data () {
    return {
      data,
      columns,
    }
  },
}
</script>
